package e

const (
	SUCCESS        = 200
	ERROR          = 500
	INVALID_PARAMS = 400

	ERROR_EXIST_STORAGE     = 10002
	ERROR_NOT_EXIST_STORAGE = 10003

	ERROR_EXIST_PRODUCT     = 10004
	ERROR_NOT_EXIST_PRODUCT = 10005

	ERROR_AUTH_CHECK_TOKEN_FAIL    = 20001
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002
	ERROR_AUTH_TOKEN               = 20003
	ERROR_AUTH                     = 20004

	// 保存图片失败
	ERROR_UPLOAD_SAVE_IMAGE_FAIL = 30001
	// 检查图片失败
	ERROR_UPLOAD_CHECK_IMAGE_FAIL = 30002
	// 校验图片错误，图片格式或大小有问题
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT = 30003

	ERROR_EXIST_USERNAME = 40001
	ERROR_NOT_EXIST_USER = 40002

	ERROR_CREATE_INORDER    = 50001
	ERROR_NOT_EXIST_INORDER = 50002
	ERROR_UPDATE_INORDER    = 50002

	ERROR_NOT_EXIST_OUTORDER = 60001
	ERROR_DELETE_OUTORDER    = 60002
	ERROR_UPDATE_OUTORDER    = 60003

	ERROR_NOT_EXIST_STOCK = 70001
	ERROR_EXIST_STOCK     = 70002
	ERROR_UPDATE_STOCK    = 70003
)
